/**
 * @author xhw
 */

public class School {

    private final String schoolName;

    public School(final String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void show() {
        final Student studentA = new Student("张三", 18);
        System.out.println(studentA.getStudent());

        final Student studentB = new Student("李四", 19);
        System.out.println(studentB.getStudent());
    }

    //静态内部类
    static class Teacher {
        private final String name;

        Teacher(final String name) {
            this.name = name;
        }

        public String getTeacherName() {
            return "老师的名字: " + this.name;
        }
    }

    class Student {
        private final String name;
        private final int age;

        Student(final String name, final int age) {
            this.name = name;
            this.age = age;
        }

        public String getStudent() {
            return schoolName + " 学生姓名: " + this.name + ", 年龄: " + this.age;
        }
    }
}
